// api
const request = require('../utils/request')

//   登录
export function login(data) {
    return request({
        url: '/sys/mLogin',
        method: 'post',
        header: {
            "Content-Type": "application/json",
            'reqType': 'wx'
        },
        data
    })
}
//   退出
export function logout(data) {
    return request({
        url: '/sys/logout',
        method: 'get',
        header: {
            "Content-Type": "application/x-www-form-urlencoded",
            'reqType': 'wx',
            'X-Access-Token': wx.getStorageSync('token')
        },
        data
    })
}
// 业务字典接口
export function paramDoc(data) {
    return request({
        url: '/sys/dict/queryAllDictItems',
        method: 'get',
        header: {
            "Content-Type": "application/x-www-form-urlencoded",
            'reqType': 'wx',
            'X-Access-Token': wx.getStorageSync('token')
        },
        data
    })
}